package io.renren.modules.avanotes.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 英语单词词汇表
 *
 * @author zzr
 * @email 529742454@qq.com
 * @date 2022-01-31 17:11:00
 */
@Data
@TableName("vocabulary")
public class VocabularyEntity implements Serializable {
    private static final long serialVersionUID = 1L;


    public static String CN_ID = "id";
    public static String CN_WORD = "word";
    public static String CN_EXPLANATION = "explanation";
    public static String CN_PRONUNCIATION_RELATIVE_PATH = "pronunciation_relative_path";
    public static String CN_COSKEY = "coskey";
    public static String CN_ECO = "eco";
    public static String CN_IS_MATCH = "is_match";
    public static String CN_CREATE_TIME = "create_time";

    /**
     * id
     */
    @TableId
    private Long id;
    /**
     * 英语单词
     */
    private String word;
    /**
     * 解释
     */
    private String explanation;

    /**
     * 发音音频路径（相对路径）
     */
    private String pronunciationRelativePath;
    /**
     * coskey
     */
    private String coskey;
    /**
     * 是否为 ECO 单词
     */
    private Integer eco;
    /**
     * 是否匹配电影库（）
     */
    private Integer isMatch;
    /**
     * 创建时间
     */
    private Date createTime;

    public VocabularyEntity() {
    }

    public VocabularyEntity(String word, String explanation) {
        this.word = word;
        this.explanation = explanation;
    }
}
